<template>
	<view>
		<user-info43 username="张三" avatar="../../static/pic1.jpg"></user-info43>
		<user-info43 :username="username" :avatar="avatar"></user-info43>
		<user-info432></user-info432>
		<view>常用的对象列表方式传porps给子组件</view>
		<user-info432 v-for="item in objlist" :obj="item"></user-info432>
	</view>
</template>

<script setup>
import { ref } from 'vue';

const username = ref("李四")
const avatar = ref("../../static/pic2.jpg")

const objlist = ref([
	{username:"黄五",avatar:"../../static/pic1.jpg"},
	{username:"赵六",avatar:"../../static/pic2.jpg"},
	{username:"刘七",avatar:"../../static/pic3.jpg"},
])

</script>

<style lang="scss" scoped>

</style>